<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
	<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
		
	</script>
	<script>
		function createPromise(url) {
			return new Promise(function (resolve, reject) {
				$.ajax({
					url: url,
				
					success(arr) {
						resolve(arr);
					},
					error(err) {
						reject(err);
					}
				})
			});
		}
		// 避免了异步的回调地狱问题
		Promise.all([
			createPromise('http://59.65.232.233:5080/api_1_0/ssoUser/2023101916543597'),
			createPromise('http://59.65.232.233:5080/api_1_0/ssoUser/2023103116255631')
		]).then(function (results) {
			console.log(results);
		}, function () {
			console.log("错误");
		});

	</script>

</head>

<body>
	

</body>

</html>